package com.stagewebserver.webserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.stagecommon.common.pojo.Menus;
import com.stagecommon.common.vo.MenusVo;


import java.util.List;

public interface MenusMapper extends BaseMapper<Menus> {

    List<MenusVo> selectMenusList(Integer parentId);
    List<Menus> selectMenus(Integer parentId);
    IPage<Menus> selectAllMenus(String menuName, Page<Menus> menusPage);

    List<Menus> selectMenusByLevel(Byte menuLevel);
}
